package com.scau.database.entity.salesperson.sell;

import java.util.HashMap;
import java.util.List;

public class BuyResultDTO {
    private Integer status; // 交易状态码
    // {1:成功,2:缺货或者限购}
    private List<Integer> lackIndexs; //缺货索引
    private HashMap<Integer,Integer> limitBuy; // 限购 {index,limitNumber}
    private List<Integer> countError; // 数量异常
    private List<Integer> priceError; // 价格异常

    public List<Integer> getCountError() {
        return countError;
    }

    public void setCountError(List<Integer> countError) {
        this.countError = countError;
    }

    public List<Integer> getPriceError() {
        return priceError;
    }

    public void setPriceError(List<Integer> priceError) {
        this.priceError = priceError;
    }

    public HashMap<Integer, Integer> getLimitBuy() {
        return limitBuy;
    }

    public void setLimitBuy(HashMap<Integer, Integer> limitBuy) {
        this.limitBuy = limitBuy;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<Integer> getLackIndexs() {
        return lackIndexs;
    }

    public void setLackIndexs(List<Integer> lackIndexs) {
        this.lackIndexs = lackIndexs;
    }

    @Override
    public String toString() {
        return "BuyResultDTO{" +
                "status=" + status +
                ", lackIndexs=" + lackIndexs +
                ", limitBuy=" + limitBuy +
                ", countError=" + countError +
                ", priceError=" + priceError +
                '}';
    }
}
